package com.wandian.texas.entity;

import java.sql.Timestamp;
import java.util.concurrent.locks.ReentrantLock;

/**
 * 服务器列表信息
 * 
 * @author long
 * @date 2012-10-19 下午5:06:14
 * @qq 108232706
 * @description ServerListEntity
 */
public class ServerListEntity extends DataObject {
	/**
	 * 游戏列表扩展表
	 */
	public int ServerId;
	//<-----
	/**
	 * 游戏服总表id
	 */
	public int ServerIndex;
	public int GameId;
	public int TableId;
	public int GameByte;
	//---->
	public String ServerName;
	public int ServerState;
	public int RoomCount;
	public String ServerIp;
	public String ServerIp2;
	public int Port;
	/**
	 * 允许网络最大用户连接数
	 */
	public int SessionMaxCount;
	public int SessionWarnCount;
	public int CmdThreadCount;
	public int CmdQueueCount;
	public int CurrentSessionCount;
	public int State;
	public String Description;
	public Timestamp CreateDate;
	public float Rate;
	/**
	 * 该服由于未能与中心服连接，每次游戏结束盈利累计至此，定时存数据库，当连中心成功，则发送过去并清空
	 */
	public float SystemTotalWin;
	public float ToCornucopiaRate;
	public String WinCornucopiaRates;//如9,8,7对应的0.5,,0.2,0.1
	public float[] CornucopiaRates = new float[3];

	@Override
	public String toString() {
		return String.format("ServerListEntity[ServerId:%s ServerIndex:%s ServerName:%s RoomCount:%s Rate:%s,Port:%s SessionMaxCount:%s SessionWarnCount:%s CmdThreadCount:%s CmdQueueCount:%s;]", ServerId,ServerIndex, ServerName, RoomCount, Rate, Port, SessionMaxCount, SessionWarnCount, CmdThreadCount, CmdQueueCount);
	}
	
}
